import jieba
sentence = "中华民族是一个伟大的民族"

s1=jieba.cut(sentence)
print('use cut')
print(s1)
print('/'.join(s1))
li1=[word for word in jieba.cut(sentence)]
print(li1)

print('use lcut')
print(jieba.lcut(sentence))

#分词模式，默认是精确模式，False
print(jieba.lcut(sentence,False))
print(jieba.lcut(sentence,True))
